package com.wpw.eureka;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;

/**
 * 通过@EnableDiscoveryClient向服务中心注册
 * 通过@EnableFeignClients注解开启Feign的功能
 * 通过@EnableHystrixDashboard注解 + @EnableCircuitBreaker注解，开启hystrixDashboard
 * Project Name：service-feign
 * ClassName：ServiceFeignApplication
 * Description：
 * @author: wupengwei
 * @date: 2018年4月18日 上午9:39:06
 * note:
 *
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
@EnableHystrixDashboard
@EnableCircuitBreaker
public class ServiceFeignApplication {

    public static void main(String[] args) {
        SpringApplication.run(ServiceFeignApplication.class, args);
    }
}
